<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js引入</title>
    <!-- 声明 -->
     <!-- <script>
        alert('hello world');
     </script> -->
     <style>
        div{
            width: 100px;
            height: 100px;
            background-color: red;
        }
     </style>
     </style>
</head>
<body>
    <div></div>
    <script>
        // 输出在html页面
        document.write('今天是个星期二');
    </script>
    <script>
        // 输出在控制台上
        console.log('现在是09:35');
    </script>
    <!-- 页面的任何地方都可以写，一般是写在body的底部，提高页面展示速度 -->
     <!-- <script>
        alert('hello javascript');
     </script> -->
    <script src="../js/demo.js"></script>
</body>
</html>